

#ifndef __MYMODEM_H
#define __MYMODEM_H

#include <stdint.h>

typedef struct{
	uint32_t rec_time;
	uint32_t packet_to_rec;
    uint8_t  error;
	uint8_t  errors;
	uint8_t  eot_num;
	uint8_t  txbuf[8];
	uint8_t  txlen;
    int8_t   result;
}mYmodem_handle_t;

extern mYmodem_handle_t hmYmodem;

extern mYmodem_handle_t hmYmodem;


void mYmodem_init(void (*psend)(uint8_t*data,uint16_t len));
int32_t mYmodem_client(void);
void mYmodem_recv(uint8_t *data, uint16_t len);


#endif /* __MYMODEM_H */
